<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <%- include common %>
        <style>
            .layui-layout-body {
                padding-top: 0;
            }

            /* .row {
                width: 100%;
                height: 50px;
                background: #dddddd;

            }

            .row ul li {
                width: 12.5%;
                height: 100%;
                float: left;
                border-right: 1px solid #fff;
                text-align: center;
            }

            .row ul li span {
                line-height: 50px;
            }

            .row1 {
                width: 100%;
                background: #eeeeee;
            }

            .row1 ul li {
                width: 100%;
                height: 50px;
                border-right: 1px solid #fff;
                border-bottom: 1px solid #fff;
                text-align: center;
            }

            .row ul li .listul {
                width: 100%;
                height: 100%;
            } */
        </style>
</head>

<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
      
        <%- include('head',{username:username})  %>
        <div class="layui-body">

            <table class="layui-table" lay-size="lg">
                <colgroup>
                    <!-- <col width="90">
                    <col width="90">
                    <col width="90">
                    <col width="90">
                    <col width="90">
                    <col width="90">
                    <col width="90">
                    <col width="90">
                    <col width="90"> -->
                </colgroup>
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>职位</th>
                        <th>家庭住址</th>
                        <th>联系方式</th>
                        <th>入职时间</th>
                    
                    </tr>
                </thead>
                <tbody>
                    <% result.forEach((item,i)=>{ %>
                        <tr data-_id="<%- item._id%>">
                            <td>
                                <%- i + 1%>
                            </td>
                            <td>
                                <%- item.name%>
                            </td>
                            <td>
                                <%- item.alt%>
                            </td>
                            <td >
                                <%- item.job%>
                            </td>
                            <td>
                                <%- item.address%>
                            </td>
                            <td >
                                <%- item.tel%>
                            </td>
                            <td>
                                <%- item.time%>
                            </td>
                            <!-- <td style="width: 80px;"><button type="button" onclick="insert('<%- item._id%>')"
                                    class="layui-btn layui-btn-normal">修改</button></td>
                            <td style="width: 80px;"><button type="button" onclick="remove('<%- item._id%>')"
                                    class="layui-btn layui-btn-danger">删除</button></td> -->
                        </tr>


                        <% }) %>

                </tbody>
            </table>

        </div>

        <div class="layui-footer">
            <!-- 底部固定区域 -->
            © 国际大酒店 layumen.com
        </div>
    </div>
    <!-- <script src="../src/layui.js"></script> -->
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script>
      


        // //删除
        // function remove(n) {
        //     console.log(n)
        //     $.ajax({
        //         url: '/users/list/remove',
        //         type: 'GET',
        //         dataType: 'json',
        //         data: {
        //             _id: n
        //         },
        //         success: res => {
        //             if (res.code == 200) {
        //                 var ii = layer.load();
        //                 setTimeout(() => {
        //                     layer.close(ii);
        //                     location.reload()
        //                 }, 1000);

        //             }
        //         }
        //     })
        // }

        //JavaScript代码区域
        layui.use('element', function () {
            var element = layui.element;

        });
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });

    </script>
</body>

</html>